<html>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript">
	$(document).ready(function () {
        var url = window.dialogArguments;
        $("div").html("<img src=" + url + ">");
        
        $('body').keydown(function(event) {
	    	var keycode = event.which;
	    	if(keycode == 27) {
	    		window.close();
	    	}
	    });
    });
    
</script>
<body>
<div id='image'>
</div>
</body>
</html>